package org.example;

import org.example.dubbo.DemoService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

/**
 * Hello world!
 *
 */
public class consumer1App 
{
    public static void main( String[] args )
    {
        System.out.println( "客户端1连接至服务器");
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("consumer1.xml");
        DemoService demoService = context.getBean(DemoService.class);
        List<String> list = demoService.getPerminsssions(2L);
        System.out.println(list);
        try {
            Thread.sleep(10000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
